﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Portfolio.Repository;
using Portfolio.Entities;

namespace Portfolio.BL.Interfaces
{
    public interface IArticlesBL
    {       
        IList<ArtilcesGridV> SortBy(IQueryable<ArtilcesGridV> source, string sortExpression, string sortDirection);
        void UpdateArticle(ArticleT Article);
        ArtilcesGridV ReturnArticleById(int idArticle);
        IList<ArtilcesGridV> ReturnArticleBySearch(string title, int? idCategory, int? status, bool? active, string sortExpression, string sortDirection);
        IList<ArticleT> ReturnArticleByIDIDArticle(int? idCategory);
        void DeleteArticle(ArticleT Article);
        int InsertArticle(ArticleT Article);
        IDictionary<int, string> ReturnStatusEnum();
        IDictionary<int, string> ReturnActiveEnum();
        IDictionary<int, string> ReturnPageSizeEnum();
    }
}
